
import App from './App.vue'
import router from './routes'



import './style.css'

import { registerComponents} from '@/components'

import { registerDirective} from '@/directives'

import 'virtual:svg-icons-register'

// import Antd from 'ant-design-vue'
// import 'ant-design-vue/dist/reset.css'
 

// import ArcoVue from '@arco-design/web-vue'
// import '@arco-design/web-vue/dist/arco.css'





const app = createApp(App)


app.config.errorHandler = (err, instance, info) => {
    // 处理错误 
    console.error(err, instance, info)
}

app.config.warnHandler = (msg, instance, trace) => {
    // `trace` 是组件层级结构的追踪
    console.error(msg, instance, trace)
}
app.config.performance = true


registerComponents(app)
registerDirective(app)
// app.use(Antd)
// app.use(ArcoVue)

app.use(router)
app.mount('#app')
